package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created by wsk1103 on 2017/5/6.
 */
public interface UserMapper {
    @Select("select * from user where id=#{id}")
    User findOne(@Param("id") int id);

    @Insert("insert into user(name,password) values(#{name},#{password} )")
    boolean insertUser(@Param("name") String name, @Param("password") String password);
}
